package com.friends.design.mode.decorate.washfoot;

/**
 * @Author Zhao Tianhao
 * @Description
 * @Date 2024/7/24 11:26
 */
public class Main {
	public static void main(String[] args) {
		// 大哥全都要
		WashFoot washFoot = new WashFootImpl();
		WashFoot fruitDecorate = new FruitDecorate(washFoot);
		WashFoot foodDecorate = new FoodDecorate(fruitDecorate);
		WashFoot plusDecorate = new PlusDecorate(foodDecorate);
		plusDecorate.washFoot();
		// 小老弟
		System.out.println("--------------小老弟来咯---------------");

		WashFoot washFoot2 = new WashFootImpl();
		WashFoot fruitDecorate2 = new FruitDecorate(washFoot2);
		fruitDecorate2.washFoot();
	}
}
